<%-- 
    Document   : EditStudent
    Created on : Sep 21, 2012, 5:23:37 PM
    Author     : Admin
--%>

<%@page import="Controller.MyLib"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sửa môn học</title>
    </head>
    <body>
         <%
            request.setCharacterEncoding("utf-8");
            
            String tb = MyLib.getParameter("tb", request);
            String subject_name = MyLib.getParameter("subject_name", request);
            int number_of_section = Integer.parseInt(MyLib.getParameter("number_of_section", request));
            int score_1_ratio = Integer.parseInt(MyLib.getParameter("score_1_ratio", request));
            int score_2_ratio = Integer.parseInt(MyLib.getParameter("score_2_ratio", request));
            int score_3_ratio = Integer.parseInt(MyLib.getParameter("score_3_ratio", request));
            String description = MyLib.getParameter("description", request);     
        %>
        
        
        
       <form action="Controller" method="post">
      <input type="hidden" name="requestAction" value="editSubject">
      <div align="center">
          <h1>Sửa môn học</h1>

      Tên môn học: <input type="text" name="subject_name"  value="<%=subject_name%>"/></br>
       Số dvht :<input type="float" name="number_of_section"  value="<%=number_of_section%>"/></br>                                                             
       Tỉ lệ điểm chuyên cần: <input type="float" name="score_1_ratio" value="<%=score_1_ratio%>"/></br>
       Tỉ lệ điểm giữa kì : <input type="float" name="score_2_ratio" value=""/></br> 
       Tỉ lệ điểm kết thúc môn : <input type="float" name="score_3_ratio" value=""/></br>
       Mô tả : <input type="text" name="description"  value=""/>
      </p>
       <input type="submit" class="submit"  value="Cập nhật" name ="btnUpdate"/>
       </div>
       
       <%=tb%>
     
        </form>
    </body>
</html>
